# Wedit Makefile for project un2
SRCDIR=e:\work\lcc\work\un2
CFLAGS=-IE:\WORK\lcc\lcc\include 
CC=E:\WORK\lcc\lcc\bin\lcc.exe
LINKER=E:\WORK\lcc\lcc\bin\lcclnk.exe
OBJS=\
	un2.obj \
	un2.res

LIBS=SHLWAPI.lib

un2.exe:	$(OBJS) Makefile
	$(LINKER)  -s -subsystem windows -o $(SRCDIR)\lcc\un2.exe $(OBJS) $(LIBS)

# Build UN2.C
UN2_C=\
	$(SRCDIR)\un2.h\
	$(SRCDIR)\un2res.h\

un2.obj: $(UN2_C) $(SRCDIR)\un2.c
	$(CC) -c $(CFLAGS) $(SRCDIR)\un2.c

# Build un2.res
UN2_RC=\
	$(SRCDIR)\un2res.h\

un2.res:	$(UN2_RC) e:\work\lcc\work\un2\un2.rc
	lrc -Ie:\work\lcc\work\un2 -IE:\WORK\lcc\lcc\include  e:\work\lcc\work\un2\un2.rc

link:
	$(LINKER)  -s -subsystem windows -o $(SRCDIR)\lcc\un2.exe $(OBJS) $(LIBS)

